package imper;
import imper.graphic.view.BoatUnitView;
import imper.graphic.view.CivilUnitView;
import imper.graphic.view.EnumView;
import imper.graphic.view.IndustryView;
import imper.graphic.view.LoadGameView;
import imper.graphic.view.MapView;
import imper.graphic.view.TradePropositionView;
import imper.graphic.view.TransportView;

import java.net.URL;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;

import TWLSlick.TWLStateBasedGame;

public class MyGame extends TWLStateBasedGame
{
  protected MyGame(String name)
  {
    super(name);
    this.addState(new LoadGameView());
    this.addState(new IndustryView());
    this.addState(new CivilUnitView());
    this.addState(new BoatUnitView());
    this.addState(new MapView());
    this.addState(new TransportView());
    this.addState(new TradePropositionView());
    this.enterState(EnumView.LOADGAME.getId());
    //this.enterState(EnumView.MAPVIEW.getId());
  }

  /**
   * Implement this method and return the URL for the TWL theme.
   * @return the URL for the TWL theme. Must not be null.
   */
  @Override
  protected URL getThemeURL()
  {
    return this.getClass().getResource("/ui/simple.xml");
  }

  @Override
  public void initStatesList(GameContainer arg0) throws SlickException
  {
  }

}
